<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="admin/common/common_css :: commonHeader('系统首页')">
</head>
<body>
<div class="page-container">
    <p class="f-20 text-success"><span id="name"></span>欢迎登录！</p>
    <table class="table table-border table-bordered table-bg">
        <thead>
        <tr>
            <th colspan="5" scope="col">信息统计</th>
        </tr>
        <tr class="text-c">
            <th>统计</th>
            <th>用户数</th>
            <th>专家数</th>
            <th>留言数</th>
            <th>文章数</th>
        </tr>
        </thead>
        <tbody>
        <tr class="text-c">
            <td>总数</td>
            <td id="u">0</td>
            <td id="e">0</td>
            <td id="l">0</td>
            <td id="k">0</td>
        </tr>
        </tbody>
    </table>
</div>

<div th:include="admin/common/common_js :: onLoadJS"></div>
<script>
    
    welcome();
    function welcome() {
        send(
            '/pestdiagnosis/sys/pest/getWelcomeInfo',
            {},
            function (data) {
                var d = data.data.split(",");
                $("#name").text(d[0]);
                $("#u").text(d[1]);
                $("#e").text(d[2]);
                $("#l").text(d[3]);
                $("#k").text(d[4]);
            },
            function (res) {
                
            }
        );
    }
</script>

</body>
</html>